/*
 * DeliveryHolder.java
 * business
 *
 * Created by SunDing on 2016/9/9.
 *
 * Copyright (c) 2016年 yidiandao. All rights reserved.
 */

package com.yidiandao.business.ui.widget.listview.viewholder;

import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.yidiandao.business.R;
import com.yidiandao.business.ui.widget.listview.ViewHolder;
import com.yidiandao.business.ui.widget.view.OrderGoodsInfoLayout;

/** 我是代理商 配送订单 */
public class DeliveryHolder extends ViewHolder {

    public ImageView mIvAgentLogo;
    public TextView mTvAgentName;
    public TextView mTvAgentLevel;
    public OrderGoodsInfoLayout mInfoLayout;
    public TextView mTvDeliveryPayway;
    public TextView mTvDeliveryAddress;
    public TextView mTvDeliveryConsinee;
    public TextView mTvDeliveryPhone;
    public LinearLayout mLlButton;
    public TextView mTvDeliveryShop;
    public TextView mTvDispatch;
    public TextView mTvDelivery;
    public TextView mTvReceipt;

    @Override
    protected void initView(View rootView) {
        mTvDeliveryShop = (TextView) rootView.findViewById(R.id.tv_delivery_shop);
        mIvAgentLogo = (ImageView) rootView.findViewById(R.id.iv_agent_logo);
        mTvAgentName = (TextView) rootView.findViewById(R.id.tv_agent_name);
        mTvAgentLevel = (TextView) rootView.findViewById(R.id.tv_agent_level);
        mInfoLayout = (OrderGoodsInfoLayout) rootView.findViewById(R.id.info_layout);
        mTvDeliveryPayway = (TextView) rootView.findViewById(R.id.tv_delivery_payway);
        mTvDeliveryAddress = (TextView) rootView.findViewById(R.id.tv_delivery_address);
        mTvDeliveryConsinee = (TextView) rootView.findViewById(R.id.tv_delivery_consinee);
        mTvDeliveryPhone = (TextView) rootView.findViewById(R.id.tv_delivery_phone);
        mTvDelivery = (TextView) rootView.findViewById(R.id.tv_delivery);
        mTvDispatch = (TextView) rootView.findViewById(R.id.tv_despatch);
        mTvReceipt = (TextView) rootView.findViewById(R.id.tv_receipt);
        mLlButton = (LinearLayout) rootView.findViewById(R.id.ll_button);
    }

    @Override
    protected int getItemLayoutId() {
        return R.layout.item_devivery_agent;
    }
}
